package com.collabscm.md.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.collabscm.md.base.dao.UserDao;
import com.collabscm.md.base.model.User;
import com.collabscm.md.base.service.UserService;
import com.collabscm.pf.dao.DatabaseDao;
import com.collabscm.pf.service.support.DomainServiceSupport;

/**
 * User对象的业务逻辑实现
 *
 * @author Zeng Raoxing
 */
@Service("userService")
public class UserServiceImpl extends DomainServiceSupport<User, Long> implements UserService {
	private static final long serialVersionUID = 1L;
	@Autowired
	private UserDao<User, Long> userDao;
	
	@Override
	protected DatabaseDao<User, Long> getDatabaseDao() {
		return userDao;
	}

	@Override
	public User getUserByNoAndPW(String accountNo, String password) {
		logger.debug("start service");
		return userDao.getUserByNoAndPW(accountNo, password);
	}
	
	

}
